<?php

use think\facade\Route;

#base
Route::get('/', static function(){
    return json(['msg' => 'welcome!', 'code' => 0], 200);
});
Route::miss(static function () {
    return json(['msg' => 'resource is not found！', 'code' => -1], 404);
});

#test
Route::post('user/register', 'index/Users/register');#注册
Route::get('user/info', 'index/Users/getUserInfo');
Route::get('user/list', 'index/Users/getUserList');#
Route::post('user/repwd', 'index/Users/repwd');#重置密码

//->pattern(['woc_order_id' => '\d+']);